/*******************************************************************************
 * Copyright (c) 2021, 2025 Lablicate GmbH.
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 * 
 * Contributors:
 * Matthias Mailänder - initial API and implementation
 *******************************************************************************/
package org.eclipse.chemclipse.nmr.converter.supplier.nmrml.model;

import java.io.Serializable;
import java.math.BigDecimal;

import org.eclipse.chemclipse.nmr.model.core.ISignalFID;

public class VendorFIDSignal implements ISignalFID, Serializable {

	private static final long serialVersionUID = 1L;
	private Double time;
	private Double real;
	private Double imaginary;

	public VendorFIDSignal(Double time, Double real, Double imaginary) {

		this.time = time;
		this.real = real;
		this.imaginary = imaginary;
	}

	@Override
	public BigDecimal getSignalTime() {

		return new BigDecimal(time);
	}

	@Override
	public Number getRealComponent() {

		return real;
	}

	@Override
	public Number getImaginaryComponent() {

		return imaginary;
	}
}
